Optimal. Leaf size=45 \[ -\frac {b \sqrt {1-c x}}{2 c^2 \sqrt {\frac {1}{1+c x}}}+\frac {1}{2} x^2 \left (a+b \text {sech}^{-1}(c x)\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 45, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {6418, 75}
\begin {gather*} \frac {1}{2} x^2 \left (a+b \text {sech}^{-1}(c x)\right )-\frac {b \sqrt {1-c x}}{2 c^2 \sqrt {\frac {1}{c x+1}}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 75
Rule 6418
Rubi steps
\begin {align*} \int x \left (a+b \text {sech}^{-1}(c x)\right ) \, dx &=\frac {1}{2} x^2 \left (a+b \text {sech}^{-1}(c x)\right )+\frac {1}{2} \left (b \sqrt {\frac {1}{1+c x}} \sqrt {1+c x}\right ) \int \frac {x}{\sqrt {1-c x} \sqrt {1+c x}} \, dx\\ &=-\frac {b \sqrt {1-c x}}{2 c^2 \sqrt {\frac {1}{1+c x}}}+\frac {1}{2} x^2 \left (a+b \text {sech}^{-1}(c x)\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 57, normalized size = 1.27 \begin {gather*} \frac {a x^2}{2}+b \left (-\frac {1}{2 c^2}-\frac {x}{2 c}\right ) \sqrt {\frac {1-c x}{1+c x}}+\frac {1}{2} b x^2 \text {sech}^{-1}(c x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.16, size = 63, normalized size = 1.40
method | result | size |
derivativedivides | \(\frac {\frac {a \,c^{2} x^{2}}{2}+b \left (\frac {c^{2} x^{2} \mathrm {arcsech}\left (c x \right )}{2}-\frac {\sqrt {-\frac {c x -1}{c x}}\, c x \sqrt {\frac {c x +1}{c x}}}{2}\right )}{c^{2}}\) | \(63\) |
default | \(\frac {\frac {a \,c^{2} x^{2}}{2}+b \left (\frac {c^{2} x^{2} \mathrm {arcsech}\left (c x \right )}{2}-\frac {\sqrt {-\frac {c x -1}{c x}}\, c x \sqrt {\frac {c x +1}{c x}}}{2}\right )}{c^{2}}\) | \(63\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.26, size = 36, normalized size = 0.80 \begin {gather*} \frac {1}{2} \, a x^{2} + \frac {1}{2} \, {\left (x^{2} \operatorname {arsech}\left (c x\right ) - \frac {x \sqrt {\frac {1}{c^{2} x^{2}} - 1}}{c}\right )} b \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 73 vs.
\(2 (35) = 70\).
time = 0.35, size = 73, normalized size = 1.62 \begin {gather*} \frac {b c x^{2} \log \left (\frac {c x \sqrt {-\frac {c^{2} x^{2} - 1}{c^{2} x^{2}}} + 1}{c x}\right ) + a c x^{2} - b x \sqrt {-\frac {c^{2} x^{2} - 1}{c^{2} x^{2}}}}{2 \, c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.19, size = 46, normalized size = 1.02 \begin {gather*} \begin {cases} \frac {a x^{2}}{2} + \frac {b x^{2} \operatorname {asech}{\left (c x \right )}}{2} - \frac {b \sqrt {- c^{2} x^{2} + 1}}{2 c^{2}} & \text {for}\: c \neq 0 \\\frac {x^{2} \left (a + \infty b\right )}{2} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.39, size = 50, normalized size = 1.11 \begin {gather*} \frac {a\,x^2}{2}+\frac {b\,x^2\,\mathrm {acosh}\left (\frac {1}{c\,x}\right )}{2}-\frac {b\,x\,\sqrt {\frac {1}{c\,x}-1}\,\sqrt {\frac {1}{c\,x}+1}}{2\,c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________